package cn.edu.gcu.PraticalTraining.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 用戶管理控制器
 */
@Controller
@RequestMapping("/user")
public class UserManageController {
	@RequestMapping("/")
	public ModelAndView index(){
		return new ModelAndView("user/index");
	}
	
	@GetMapping("/changePassword")
	public ModelAndView changePassword(){
		return new ModelAndView("user/changePassword");
	}
	
	@PostMapping("/changePassword")
	public ModelAndView changePassword(String oldPassword,String newPassword){
		return new ModelAndView("user/changePassword");
	}
}
